#!/bin/sh

# doar - mail aggregation script based on mpop and msmtp
# Written in 2014 by fr33domlover <fr33domlover@riseup.net>
#
# To the extent possible under law, the author(s) have dedicated all copyright
# and related and neighboring rights to this software to the public domain
# worldwide. This software is distributed without any warranty.
#
# You should have received a copy of the CC0 Public Domain Dedication along with
# this software. If not, see
# <http://creativecommons.org/publicdomain/zero/1.0/>.

install -d /usr/local/bin
install -d /etc/cron.d
install -d /etc/doar
install -d /usr/local/share/doar
install --preserve-timestamps --mode=0755 doar.sh   /usr/local/bin/doar
install --preserve-timestamps --mode=0644 doar.cron /etc/cron.d/doar
install --preserve-timestamps --mode=0644 mpoprc    /etc/doar/mpoprc
install --preserve-timestamps --mode=0755 install.sh   \
                                          uninstall.sh \
                                          /usr/local/share/doar
install --preserve-timestamps --mode=0644 INSTALL \
                                          README  \
                                          TODO    \
                                          AUTHORS \
                                          /usr/local/share/doar
